<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>消息</title>
<link rel="stylesheet" type="text/css"
	href="<?=base_url('css/user/note.css') ?>" />
<link rel="stylesheet" type="text/css"
	href="<?=base_url('css/user/global.css') ?>" />
<script src="<?=base_url('js/tbk.js') ?>"></script>
<script>
$(document).ready(function (){
	$("#msgListBox li.main-left-item").mouseover(function (){
		if($(this).attr("class")=="main-left-item")
			$(this).attr("class","main-left-hover");
	}).mouseout(function (){
		if($(this).attr("class")=="main-left-hover")
			$(this).attr("class","main-left-item");
	}).click(function (){
		$isli = $(this);
		a = parseInt($isli.attr('id').substr(4)) + 1;
		if($("#con_" + a ).attr("id") == "con_"+a){
			$("#msgNextBtn").show();
		}else{
			$("#msgNextBtn").hide();
		}
		
		$.ajax({
			type:'POST',
			url:'<?=site_url("user/message/getMsg") ?>',
			//data:'',
			success:function (re){
				leng = $("#msgListBox li").length;
				for( i = 0 ; i < leng ;i++ ){
					$("#con_"+i).attr("class","main-left-item");
				}
				$isli.attr("class","main-left-selected");
				$("#scrollMoveElement .normal-ad-sty").html(re);
			}
		})
	})
	$("#con_0").attr("class","main-left-selected");
	if($("#con_1").attr("id") == "con_1"){
		$("#msgNextBtn").show();
	}
	$("#msgListBox li.main-left-selected").attr("id")
})
</script>
</head>

<body>
	<div class="grid-99 " id="bodycontent">
		<div id="bodyContent" class="grid-98" style="text-align: left;">
			<div id="conHeaderList" class="con-header header-frd-state">
				<div class="floatleft con-header-leftitem tab_selecttxt">
					<a>站长的信</a>
				</div>

				<div class="floatright con-header-rightitem" id="send_new_edit"
					style="">
					<a href="#"
						onclick="spNotice.noticeTab.showEditMsg();spNotice.count.statistics(&quot;new&quot;);return false;">写新消息</a>
				</div>
				<div class="floatright con-header-rightitem-back"
					id="send_new_comeback" style="display: none;">
					<a href="#"
						onclick="spNotice.noticeTab.showBackList();return false;">返回</a>
				</div>
			</div>
			<div class="con-main">
				<div class="con-main-bodynotice" id="msgMainBody" style="">
					<div class="con-main-left floatleft">
						<ul id="msgListBox" class="msg-listbox" style="height: 538px;">
							<li id="con_0" class="main-left-item">
								<div id="li_ico_0" class="left-item-user floatleft open-ico">
									<nobr>xiagou280 </nobr>
								</div>
								<div class="left-item-title floatleft">
									给你留言<span id="item_num_0">(1)</span>
								</div>
								<div class="left-item-time floatleft">2012-06-06</div>
								<div class="left-item-delete floatright">
									<a href="#" class="item-delAnchor" onclick="alert('s')"> <img
										style="position: relative"
										src="<?=base_url('images/12/left_err_ico.gif')?>" />
									</a>
								</div>
							</li>
							<li id="con_1" class="main-left-item">
								<div id="li_ico_0" class="left-item-user floatleft open-ico">
									<nobr>xiagou280 </nobr>
								</div>
								<div class="left-item-title floatleft">
									给你留言<span id="item_num_0">(1)</span>
								</div>
								<div class="left-item-time floatleft">2012-06-06</div>
								<div class="left-item-delete floatright">
									<a href="#" class="item-delAnchor" onclick="alert('s')"> <img
										style="position: relative"
										src="<?=base_url('images/12/left_err_ico.gif')?>" />
									</a>
								</div>
							</li>
							<li id="con_2" class="main-left-item">
								<div id="li_ico_0" class="left-item-user floatleft open-ico">
									<nobr>xiagou280</nobr>
								</div>
								<div class="left-item-title floatleft">
									给你留言<span id="item_num_0">(1)</span>
								</div>
								<div class="left-item-time floatleft">2012-06-06</div>
								<div class="left-item-delete floatright">
									<a href="#" class="item-delAnchor" onclick="alert('s')"> <img
										style="position: relative"
										src="<?=base_url('images/12/left_err_ico.gif')?>" />
									</a>
								</div>
							</li>
						</ul>
						<div id="conPage" class="main-left-changePage">
							<div id="pageP1" class="left-dealAnchor floatleft" style="">
								<a id="allselect" name="allselect"
									onclick="spNotice.noticeList.setReadAll();spNotice.count.statistics('read_all');return false;"
									href="#" style="">全部设为已读 </a><span id="separate" style="">|</span>
								<a
									onclick="spNotice.noticeList.deleteRoute();spNotice.count.statistics(&quot;del_all&quot;);return false;"
									href="#">删除全部</a>
							</div>
							<div id="pageBar" class="left-setPageAnchor floatright"
								style="display: none;">
								<a href="#"
									onclick="spNotice.noticeList.changePage('first'); return false;">首页</a>
								<a href="#"
									onclick="spNotice.noticeList.changePage('pre');spNotice.count.statistics('prev_page');return false;">上页</a>
								<a href="#"
									onclick="spNotice.noticeList.changePage('next');spNotice.count.statistics('next_page');return false;">下页</a>
								<a href="#"
									onclick="spNotice.noticeList.changePage('last'); return false;">末页</a>
								<span id="pageSelectorSpan"><select
									onchange="spNotice.noticeList.setPage(this.value)"
									name="pageSelector" id="pageSelector"><option value="0">1/1</option></select></span>
							</div>
						</div>
						<form style="display: none;" name="del_readAction"
							id="del_readAction" target="ifrForSubmit" method="post">
							<input type="hidden" name="intMtype" id="intMtype"> <input
								type="hidden" name="strMid" id="arrMid"> <input type="hidden"
								name="strNoteMid" id="strNoteMid"> <input type="hidden"
								name="bdstoken" value="931b627acc24e4768b791d0aa0ff6410"> <input
								type="hidden" name="callback" id="callback"
								value="top.spNotice.noticeList.allActBack"> <input type="hidden"
								name="_t" id="_t">
						</form>
					</div>
					<div class="con-main-center floatleft"></div>
					<div id="con_right" class="con-main-right floatright">
						<div class="mail-prevOrnext">
							<div id="msgNextBtn"
								class="mail-next floatright" style="display: none;">下一封</div>
						</div>
						<div class="con-msg-content" id="msgContentBox">
							<div class="user-content" id="msgUserCon">
								<div id="sessionContainer" class="notice-seesion-container">
									<div class="session-con-container" id="scrollContainer">
										<div class="floatright msg-time" style="margin-right: 10px;">24天前</div>
										<div class="session-con-view" id="scrollMoveElement"
											style="top: 0px;">
											<div class="normal-ad-sty" style="word-wrap: break-word;">
												<table width="430px" style="table-layout: fixed;">
													<tbody>
														<tr>
															<td style="font-size: 12px; line-height: 200%;">有1个来自
																有1个来自北京-海淀区的23岁MM在向你打招呼 她看了你的资料，对你非常感兴趣哦~ 快去看看她吧

																http://hi.baidu.com/app/udi/redirect?from=logincall&to=preihome&portrait=462cd0a1b1b1d4dad0d0d7df7611
															</td>
														</tr>
													</tbody>
												</table>
											</div>
										</div>
									</div>
								</div>
								<div class="clear"></div>
							</div>
						</div>
					</div>
					<div class="clear"></div>
				</div>
				<!-- 写消息 -->
				<div id="msgMainEdit" class="msgEditPos " style="display: none;">
					<div class="module msgEditWidth">
						<form name="msgCmtForm" id="msgCmtForm" target="ifrForSubmit"
							method="post"
							onkeyup="spNoticeTpl.message.msg_keyUpHandler(event);"
							onkeypress="if(baidu.browser.ie&amp;&amp;parseInt(baidu.browser.ie)==6){spNoticeTpl.message.msg_EnterSubHandler(event);}"
							onkeydown="spNoticeTpl.message.msg_EnterSubHandler(event);">
							<input type="hidden" id="callback" name="callback" value=""> <input
								type="hidden" id="bdstoken" name="bdstoken"
								value="931b627acc24e4768b791d0aa0ff6410">
							<div class="mail-top-ico"></div>
							<div class="mail">
								<div class="to-row">
									<div class="inputtext">发送给:</div>
									<div class="floatleft spPos sp-input-sty">
										<span class="input-container  torowInput tips-bg"
											id="inputContainer"
											onclick="spNoticeTpl.message.changeFocus();"> <span
											id="uname_nodes"> </span> <input class="autoInput"
											autocomplete="off" onkeydown=""
											onkeyup="spNoticeTpl.message.msg_clickShowlist(this,'tangjunbin10');spNoticeTpl.message.msg_keyRoute(event);"
											onblur="spNoticeTpl.message.addOne_input();spNoticeTpl.message.lableInputTips();"
											onfocus="spNoticeTpl.message.disErr(&quot;err1&quot;);spNoticeTpl.message.disInputTips();"
											id="edit_uname" name="edit_uname" type="text">
										</span> <input type="hidden" name="strUname" id="strUname">
										<div class="clear"></div>
										<div id="err1" style="display: none; color: #FF0000; zoom: 1;"></div>
										<div id="frdList"
											onmouseover="spNoticeTpl.message.msg_setOver();"
											onmouseout="spNoticeTpl.message.msg_delOver();"
											class="frdListstyle" style="display: none;"></div>
									</div>
									<div class="morediv spPos">
										<a href="#"
											onclick="spNoticeTpl.message.msg_selecterFrd('tangjunbin10');return false;"><img
											src="http://img.baidu.com/hi/spnote/more.gif"></a>
										<div id="frdSelector" class="frdSelector"
											style="display: none;">
											<div id="moreFrdlist" class="moreFrd" style="display: block;">
												<div class="titleFrd" style="zoom: 1;">
													<div id="frdTitle1"
														style="background-color: #ffffff; color: #1a70b2;"
														class="title" onclick="frdSelector.Main.changeTab(1);">我的好友</div>
													<div id="frdTitle2" class="title"
														onclick="frdSelector.Main.changeTab(2);">双向好友</div>
													<div id="frdTitle3" class="title"
														onclick="frdSelector.Main.changeTab(3);">关注我的人</div>
													<div style="margin-top: 5px; margin-right: 5px;"
														class="floatright" onclick="frdSelector.Main.closeIt();">
														<img
															src="http://img.baidu.com/hi/img/dialogclose2.gif?v=38278355.gif"
															style="width: 16px; height: 16px; cursor: pointer;">
													
													</div>
													<div class="clear"></div>
												</div>
												<div id="myFrd" class="frdListcon">
													<div id="all-item1" class="batchItem">
														<div class="clear"></div>
													</div>
													<div id="all-item2" class="batchItem">
														<div class="clear"></div>
													</div>
													<div id="all-item3" class="batchItem">
														<div class="clear"></div>
													</div>
												</div>
												<div id="twoFrd" class="frdListcon" style="display: none;">
													<div id="two-item1" class="batchItem">
														<div class="clear"></div>
													</div>
													<div id="two-item2" class="batchItem">
														<div class="clear"></div>
													</div>
													<div id="two-item3" class="batchItem">
														<div class="clear"></div>
													</div>
												</div>
												<div id="attFrd" class="frdListcon" style="display: none;">
													<div id="att-item1" class="batchItem">
														<div class="clear"></div>
													</div>
													<div id="att-item2" class="batchItem">
														<div class="clear"></div>
													</div>
													<div id="att-item3" class="batchItem">
														<div class="clear"></div>
													</div>
												</div>
												<div id="changeMyFrdsAnchorBlock"
													class="changeFrd floatright"></div>
												<div id="changeDsFrdsAnchorBlock"
													class="changeFrd floatright" style="display: none;"></div>
												<div id="changeAttFrdsAnchorBlock"
													class="changeFrd floatright" style="display: none;"></div>
											</div>
										</div>
									</div>
									<div class="clear"></div>
								</div>
							</div>
							<!-- <div class='mail-tip-style'>可批量发送站内消息。用户名和用户名之间请用分号隔开，每次最多可多发送给5个用户</div> -->
							<div class="content-row">
								<div class="floatleft inputtext">内 容:</div>
								<div class="floatleft">
									<textarea name="strContent" id="strContent"
										onfocus="spNoticeTpl.message.disErr(&quot;err2&quot;);spNoticeTpl.message.msg_displayFrdList();"></textarea>
									<div id="err2" style="display: none; color: #FF0000"></div>
								</div>
								<div class="clear"></div>
							</div>
							<!-- <div class='mail-tip-style'>1000汉字（或者2000字符）以内</div> -->
							<div class="verification-row">
								<div class="inputtext">验证码:</div>
								<div class="floatleft">
									<input type="hidden" name="spVcode" id="spVcode" value=""> <input
										name="Code" id="Code" type="text" autocomplete="off"
										onfocus="spNoticeTpl.message.msg_getVcode();spNoticeTpl.message.msg_displayFrdList();"
										onmouseover="spNoticeTpl.message.disErr(&quot;err3&quot;);">
									<div id="err3"
										style="display: none; color: #FF0000; padding-left: 84px;"></div>
								</div>
								<div class="floatleft">
									<img style="display: none;" class="verifyImg"
										id="msg-verifypic">
								</div>
								<div id="reLoad" class="floatleft reloadAnchor">
									<a href="#" style="text-decoration: underline;"
										onclick="spNoticeTpl.message.msg_getVcode();return false;">换一个</a>
								</div>
								<div class="clear"></div>
							</div>
							<div class="send-row">
								<a class="floatleft msgEditsend" title="ctrl+enter" href="#"
									onclick="spNoticeTpl.message.msg_displayFrdList();spNoticeTpl.message.msg_dealSub();return false;"><img
									src="http://img.baidu.com/hi/spnote/send.gif" alt="ctrl+enter"></a>
								<div class="clear"></div>
							</div>
						</form>
					</div>

				</div>
				<!-- 写消息end -->
			</div>
			<div id="con_bottom_bg" class="con-main-bottom"></div>
		</div>
		<iframe id="ifrForSubmit" name="ifrForSubmit" style="display: none"></iframe>
		<div id="footer">
			<div class="copyright">©2012 Baidu</div>
		</div>
	</div>

</body>
</html>
